import request from '@/utils/request'

export async function login ({ username, password }) {
  return await request.post('/auth/login', { username, password })
}

export async function getUserInfo () {
  return await request.get('/auth/currentUser')
}
